package com.maimao.order.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.maimao.model.order.KillSuccess;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * @author MaoLin Wang
 * @date 2021/4/17 5:04 下午
 */
public interface KillSuccessMapper extends BaseMapper<KillSuccess> {

    @Select("select count(*) from mm_kill_success where kill_id=#{killId} and user_id =#{userId}")
    int countKilled(@Param("killId") Long killId, @Param("userId") Long userId);
}
